﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace MusicForMvc3.Controllers
{
    public class ToController : Controller
    {
        //
        // GET: /To/

        public ActionResult ToUrl(string url)
        {
            if (string.IsNullOrWhiteSpace(url))
            {
                return Content("url can not be empty.");
            }
            url = System.Web.HttpUtility.UrlDecode(url);

            AMing.Helper.Net40.HttpHelper htmlhelper = new AMing.Helper.Net40.HttpHelper();
            string content = htmlhelper.Get(url);

            return Content(content);
        }

    }
}
